package com.ymttest.utils.compare.parameter.test;

import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import org.json.JSONObject;

import com.ymttest.common.order.userquery.util.HttpClientUtil;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.YMTDateUtil;

public class MainTesn {
	public static void main(String[] args){
		try {
			String aa = HttpClientUtil.requestGet("http://selleractivity.iapi.ymatou.com/api/ActivityProduct/CheckProductInActivity", 
							MapUtil.hashMap("SellerId","3383","ProductId","8dce71b6-a0f1-4023-b53c-d3ae1d4dc83b"));
		
		JSONObject cc = new JSONObject(aa);
		int ccc = 1;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		List<Integer> x=new ArrayList<>();
		x.add(2);
		x.add(2);
		x.add(3);
		x.add(2);
		x.add(2);
			
		
		System.out.println(x.stream().filter(y->y==2).mapToInt(z->z.intValue()).sum());
		
		
		Random rand = new Random();
		
		System.out.println(Long.parseLong(YMTDateUtil.getSysTime("yyyyMMddHHmmssSSS")));
		PrintInterface a = (PrintInterface)Proxy.newProxyInstance(ObjectProxy.class.getClassLoader(),
				PrintImpl.class.getInterfaces(),
																	new ObjectProxy(new PrintImpl()));
		a.print();
		
		
		
	}
}
